public class ThreadDemo1 {
    public static void main(String[] args) {
        Thread t = new Thread(() -> {
            System.out.println("run方法");
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        });
        t.start();
    }
}
